<?php
$this->breadcrumbs=array(
	Yii::t('yii','Manage Articles'),
);

if(Yii::app()->user->hasAuth(Group::TEACHER)){
$this->menu=array(
	array(Yii::t('yii','Create Article'), array('create')),
	array(Yii::t('yii','List Articles'), array('index')),
);
}
?>
<h1><?php Yii::t('yii','Manage Articles'); ?></h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		array(
			'name'=>'title',
			'type'=>'raw',
			'value'=>'CHtml::link(CHtml::encode($data->title), $data->url)'
		),
		array(
			'name'=>'status',
			'value'=>'Lookup::item("PostStatus",$data->status)',
		),
		'create_time:datetime',
		'update_time:datetime',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
